package view
{
	import flash.display.Sprite;
	import flash.text.TextField;
	
	import utils.MakeTxt;

	public class Grid extends Sprite
	{
		public var g_width:uint=100;
		public var g_height:uint=100;
		public function Grid()
		{
			super();
			this.graphics.beginFill(0,0);
			this.graphics.lineStyle(1,0xff0000);
			this.graphics.drawRect(0,0,g_width,g_height);
			this.graphics.endFill();
		}
		
		
		public function init(h:uint,v:uint):void
		{
			var txt0:TextField=MakeTxt.singleText(g_width,g_height/2,"Arial","left","dynamic",false,false,0xff0000,12,0,0,false);
			txt0.text="("+h+","+v+")";
			
			this.addChild(txt0);
		}
		
		
	}
}